﻿using System.Collections.Generic;
using System.ServiceModel;
using Pku.BookStore.Model;

namespace Pku.BookStore.IServices
{
    [ServiceContract(Name = "IOperateLogServices", Namespace = "Pku.BookStore.IServices")]
    public interface IOperateLogServices
    {
        /// <summary>
        /// 增加日志
        /// </summary>
        /// <param name="entity"></param>
        [OperationContract(Name = "Add")]
        void Add(OperateLogModel entity);

        /// <summary>
        /// 查询日志
        /// </summary>
        /// <returns></returns>
        [OperationContract(Name = "Search")]
        List<OperateLogModel> Search(OperateLogParam param);

        /// <summary>
        /// 获取实体
        /// </summary>
        /// <param name="logID"></param>
        /// <returns></returns>
        [OperationContract(Name = "GetEntityById")]
        OperateLogModel GetEntityById(int logID);

    }
}
